package com.sam.orbs;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;

public class Orb {
	private final int RADIUS = 25;

	private float x = 50;
	private float y = 50; 
	public int HP = 3;
	private int color;
	private Bitmap img;
	private boolean movable = true;

	public Orb(int x, int y, int c, Context cont, int drawable){
		BitmapFactory.Options opts = new BitmapFactory.Options();
		opts.inJustDecodeBounds=true;
		Bitmap Temp = BitmapFactory.decodeResource(cont.getResources(), drawable);
		img = Bitmap.createScaledBitmap(Temp, RADIUS * 2, RADIUS * 2, false);
		this.x = x;
		this.y = y;

		this.color = c;

	}

	public Color getColor(Color color){
		return color;

	}
	public int gethitPoints(){
		
		return HP;
		
	}
	public void sethitPoints(int HP){
		
		this.HP = HP;
		
	}
	public void setColor(int color){
		this.color = color;
	}
	public void isMovable(boolean x){
		movable = x;

	}
	public boolean getMovable(){
		return movable;
	}
	public float getX(){

		return x;

	}
	public float getY(){

		return y;

	}	
	public int getRadius(){
		return RADIUS;
	}
	
	public Bitmap getImg(){
		return img;
	}
	
	
	public void setX(float x){
		this.x = x;
	}
	public void setY(float y){
		this.y = y;
	}
}
